const picBase = 'https://oss.hapylychee.top'

export function getPicture(url, width = 0, height = 0) {

  if (width > 0 && height > 0) {
    // console.log("根据宽高裁剪");
    return picBase + url + '?x-oss-process=image/resize,m_fill,h_' + height + ',w_' + width
  } else if (width == 0 && height > 0) {
    // console.log("根据高度等比缩放");
    return picBase + url + '?x-oss-process=image/resize,h_' + height + ',m_lfit'
  } else {
    return picBase + url
  }

}
